#include <iostream>
using namespace std;

class A
{
public:
	A()
	{
		cout<<"A构造"<<endl;
	}
	~A()
	{
		cout<<"A析构了"<<endl;
	}
};

class B
{
public:
	B()
	{
		cout<<"B构造"<<endl;
	}
	~B()
	{
		cout<<"B析构了"<<endl;
	}
};

class C:public B,public A
{
public:
	C()
	{
		cout<<"C构造"<<endl;
	}
	~C()
	{
		cout<<"C析构了"<<endl;
	}
};
int main()
{
	C c;
}